﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="urBook.Gui.ContactItem"
	x:Name="UserControl" MouseDoubleClick="ContactItem_MouseDoubleClick">
    <UserControl.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Add to group" x:Name="ContextAdd"/>
            <MenuItem Header="Move to group" x:Name="ContextMove"/>
            <MenuItem Header="Edit" x:Name="ContextEdit"/>
            <MenuItem Header="Delete" x:Name="ContextDelete"/>
            <MenuItem Header="Append country code" x:Name="ContextAppend"/>
            <MenuItem Header="Merge" x:Name="ContextMerge"/>
            <MenuItem Header="Export" x:Name="ContextExport"/>
        </ContextMenu>
    </UserControl.ContextMenu>
    <Grid x:Name="Container">
        <Image HorizontalAlignment="Left" VerticalAlignment="Top" Width="48" Height="48" Margin="8,8,8,8" 
		    x:Name="contactImage" Source="data/images/unknown.png" MouseLeftButtonDown="ContactItem_MouseDoubleClick"/>
        <Label HorizontalAlignment="Left" VerticalAlignment="Top" Height="32" Margin="64,8,0,0"
		    FontWeight="Normal" FontSize="16" x:Name="contactName" Content="Name" VerticalContentAlignment="Top" MouseDoubleClick="ContactItem_MouseDoubleClick"/>
        <Label HorizontalAlignment="Left" VerticalAlignment="Bottom" Height="24" Margin="64,0,0,8"
		    FontSize="12" x:Name="contactPhone" Content="1-234-567 8910" Foreground="{StaticResource {x:Static SystemColors.ActiveBorderBrushKey}}" MouseDoubleClick="ContactItem_MouseDoubleClick" />

        <Image x:Name="edit" Source="data/images/info_32.png"  HorizontalAlignment="Right" VerticalAlignment="Center" Margin="32,8" Width="16" Height="16" ToolTip="View Contact" MouseLeftButtonDown="edit_MouseDown" />
        <Image x:Name="delete" Source="data/images/delete_32.png" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8" Width="16" Height="16" ToolTip="Delete Contact" MouseLeftButtonDown="delete_MouseDown"/>
        <Rectangle HorizontalAlignment="Stretch" Margin="8,0" Name="rectangle1" VerticalAlignment="Bottom" StrokeThickness="1" Stroke="{StaticResource {x:Static SystemColors.ActiveBorderBrushKey}}" />
    </Grid>
</UserControl>